<script>
	import util from "common/js/util.js"
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//#ifdef APP-PLUS
			/* 5+环境锁定屏幕方向 */
			plus.screen.lockOrientation('portrait-primary'); //锁定
			setTimeout(() => {
				plus.navigator.closeSplashscreen();
			}, 1000)
			const userCID = util.getStorage('userCID')
			if (!userCID) {
				let info = plus.push.getClientInfo()
				util.setStorage('userCID', info.clientid)
			}
			//#endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "common/scss/_common.scss";
	page {
		display: flex;
		/* uni-app默认使用flex布局。因为flex布局有利于跨更多平台，尤其是采用原生渲染的平台。如不了解flex布局，请参考http://www.w3.org/TR/css3-flexbox/。若不需要flex布局可删除本行*/
		flex-direction: column;
		font-size: 35upx;
	}
</style>
